
package com.fly.demo.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.fly.demo.entity.User;
import com.ketayao.ketacustom.util.dwz.Page;

public interface UserService
{
    User get(Long id);
    
    void saveOrUpdate(User user);
    
    void delete(Long id);
    
    List<User> findAll();
    
    org.springframework.data.domain.Page<User> findAll(Page page);
    
    List<User> findByExample(Specification<User> specification, Page page);
}
